<?php if(($ad->getYear() > 0) && ($ad->getDisplayYear() > 0)):  ?>
    <span class="attribute"><?php
    echo ucfirst($txt->getWord('year_production'));
    if($ad->getIsBuying() > 0) { echo ' '.$txt->getWord('from'); } 
    ?></span>
    <br />
    <span class="value"><?php echo $ad->getYear(); ?></span>
<?php endif; ?>